package com.dzx.design.creational.singletonexample;

/**
 * @author dzx
 * @ClassName:
 * @Description:
 * @date 2019年07月15日 09:54:58
 */

/**
 * 饿汉式
 */
public class SingletonExample2 {

    private SingletonExample2() {
    }

    public static SingletonExample2 singletonExample1 = new SingletonExample2();

    public static SingletonExample2 getInstance() {
        return singletonExample1;
    }

}
